package com.example.spring_config.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.spring_config.mapper.RolePermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionRoleRelationDao extends BaseMapper<RolePermission> {

    Integer addRolePermission(@Param("rid") String rid,@Param("pids") List<String> pids);

    List<String> getPermissionIds(String rid);

}
